import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    startDate: new Date('2015-01-01'),
    endDate: new Date('2020-12-27'),
    headerIndex: 'video'
  },
  mutations: {
    // [RECEIVE_ERRORS](state, err) {
    //   state.errors = err
    // },
    setHeaderIndex(state, val) {
      state.headerIndex = val
    }
  },
  actions: {
    // 提示错误消息
    // errors({ commit, state }, err) {
    //   commit(RECEIVE_ERRORS, err)
    // },
  },
  modules: {
  }
})
